package cn.kgc.vue.service;

import cn.kgc.vue.common.ResponseResult;
import cn.kgc.vue.dto.UserPageDTO;
import cn.kgc.vue.entity.User;
import cn.kgc.vue.form.AddUserForm;
import cn.kgc.vue.form.UserLoginForm;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService extends IService<User> {

    ResponseResult login(UserLoginForm userLoginForm);

    ResponseResult getUserPage(UserPageDTO userPageDTO);

    ResponseResult removeBatch(List<Integer> uIds);

    ResponseResult updateUser(AddUserForm addUserForm);

    ResponseResult addUser(AddUserForm addUserForm);

    ResponseResult getUserById(Integer id);

    ResponseResult getMenu(HttpServletRequest request);
}
